/*
 *  MainComponent.h
 *  Typeface Builder
 *
 *  Created by David Rowland on 01/12/2008.
 *  Copyright 2008 UWE. All rights reserved.
 *
 */

#ifndef _MAINCOMPONENT_H_
#define _MAINCOMPONENT_H_

#include <juce/juce.h>
#include "FontListBox.h"
#include "UserSettings.h"
#include "TextConsole.h"

/**
 @todo Comment code fully and further testing
 */
class MainComponent  : public Component,
					   public ButtonListener
{
private:
	FontListBox* fontListBox;
	
	TextConsole* textConsole;
	
	TextButton* buildButton;
	
	TooltipWindow tooltipWindow;   // To add tooltips to an application
	
public:
	// Needs to be public to be accessed by the code usage component
	UserSettings* userSettings;

	MainComponent ();

	~MainComponent ();

	void resized ();

	void paint (Graphics& g);

	void repaint();

	void buttonClicked (Button* clickedButton);
};

#endif//_MAINCOMPONENT_H_ 